package com.pet_service.enums;

/**
 * @author 邹全伸
 * @version 1.0
 * @date 2025-09-25 16:39
 */

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.pet_service.util.CodeEnum;

/**
 * 支付状态枚举
 */
public enum TPayStatus implements CodeEnum {
    UNPAID(0, "未支付"),
    PAID(1, "已支付"),
    REFUNDING(2, "退款中"),
    REFUNDED(3, "已退款");

    @EnumValue
    private final int code;
    private final String desc;

    TPayStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getDesc() {
        return desc;
    }
}
